What is the difference Function and Stored Procedure?
2284
22-Dec-2013
Sumit Kesarwani
22-Dec-2013UDF can be used in the SQL statements anywhere in the WHERE/HAVING/SELECT section where as Stored procedures cannot be.
UDFs that return tables can be treated as another row set. This can be used in JOINs with other tables.
Inline UDF can be thought of as views that take parameters and can be used in JOINs and other Row set operations.